﻿//
// Created: 2018/12/15
// Author: chenqiang
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xproject.Framework.Core;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model.ZXBuiness
{
    public class  ZXUserFenRun:IEntity
    {
    
       ///<summary>
       ///
       ///<summary>
       public long UserFenRunId  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public long ZX_UserId  { get; set; } 
       ///<summary>
       ///来自那笔分润info
       ///<summary>
       public long OrderFengyunId  { get; set; } 
       ///<summary>
       ///是哪个等级，P1 是父亲上级，P2祖父上级，P3曾祖父级
       ///<summary>
       public string FenRunLevel  { get; set; } 
       ///<summary>
       ///分润所得的钱
       ///<summary>
       public decimal FenRunMoney  { get; set; } 
        public string StrFenRunMoney {
            get {
                return FenRunMoney.ToString("#0.00");
            }
        }
       ///<summary>
       ///
       ///<summary>
       public string Remarks  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public DateTime CreateTime  { get; set; } 
       ///<summary>
       ///提现时间
       ///<summary>
       public DateTime? TiXianTime  { get; set; } 
       ///<summary>
       ///是否提现 默认0 没提现 5审核中 10 已提现走了 4 拒绝了
       ///<summary>
       public int IsTiXian  { get; set; } 
       ///<summary>
       ///提现流水号
       ///<summary>
       public string AccountBalanceCode  { get; set; } 
         
        public string StrCreateTime
        {
            get {
                return CreateTime.ToString("yyyyMMdd");
            }
        }
        
        public string FRcode { get; set; }
       [NotMapped]
        public long Id { get; set; }

        [NotMapped]
        public EntityState EntityState { get; set; }

        public int CompareTo(object obj)
        {
            throw new NotImplementedException();
        }
    }
}